<template>
  <div>
    <h2>{{title}}</h2>
    <div>
      <slot name="content" :data="test" :title="title"></slot>
    </div>
  </div>
</template>

<script>
export default {
  props:{
    title:String
  },
  data(){
    return {
      test:true
    }
  },
  mounted() {
    console.log(this.$slots);
  },
}
</script>

<style>

</style>